/* 
 * File:   ResidentStudent.cpp
 * Author: Allison
 * 
 * Created on October 17, 2013, 5:18 PM
 */

#include "ResidentStudent.h"

ResidentStudent::ResidentStudent(string firstName, string lastName, string studentID, bool res, double rate) :
Student(firstName, lastName, studentID, res, rate){
}

ResidentStudent::~ResidentStudent() {
}

void ResidentStudent::computeTuition() {
    double tuition;
    if (computeCreditNum() >= creditUpperbound)
        tuition = rate * creditUpperbound;
    else
        tuition = rate * computeCreditNum();
    setTuitionAmount(tuition);
}